import request from '../utils/request';
import qs from 'qs';
import 'whatwg-fetch';

export async function query(params) {
  return request("/clerkconfig/clerkconfig/getClerkConfigInfo", {
    method: 'post',
    body: qs.stringify(params),
  })
}

export async function update(params) {
  return request('/clerkconfig/clerkconfig/submit', {
    method: 'post',
    body: qs.stringify(params),
  });
}

export async function getVaildCode(params) {
  return request('/clerkconfig/clerkconfig/sendSMS.do', {
    method: 'post',
    body: qs.stringify(params),
  });
}

export async function showShade(params) {
  return request('/clerkconfig/clerkconfig/getActStatus', {
    method: 'post',
    body: qs.stringify(params),
  });
}

export async function getFlag(params) {
  return request('/firstactivity/activity/getFlagByPhone', {
    method: 'post',
    body: qs.stringify(params),
  });
}
export async function getQRCode(params) {
  return request('/clerkconfig/qrcode/getQRCode', {
    method: 'post',
    body: qs.stringify(params),
  });
}
